package com.mfrs;

import android.os.Parcel;
import android.os.Parcelable;

public final class FaceDetectionParam implements Parcelable
{
	private int minEyesDistance;
	private int maxEyesDistance;
	private int maxNumFaces;
	private float minFaceQualityScore;
	
		
	public static final Creator<FaceDetectionParam> CREATOR = new Creator<FaceDetectionParam>() {

		@Override
		public FaceDetectionParam createFromParcel(Parcel in) {
			return new FaceDetectionParam(in);		
			}

		@Override
		public FaceDetectionParam[] newArray(int size) {
			return new FaceDetectionParam[size];
		}		
	};
	
	public FaceDetectionParam()
	{
		
	}
	
	public FaceDetectionParam(Parcel in){
		readFromParcel(in);
	}
	
    public void readFromParcel(Parcel in) {
    	minEyesDistance = in.readInt();
    	maxEyesDistance = in.readInt();
    	maxNumFaces = in.readInt();
    	minFaceQualityScore = in.readFloat();    	
    }
    
    
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel outParcel, int flags) {
		outParcel.writeInt(minEyesDistance);
		outParcel.writeInt(maxEyesDistance);
		outParcel.writeInt(maxNumFaces);
		outParcel.writeFloat(minFaceQualityScore);			
	}

	public int getMinEyesDistance() {
		return minEyesDistance;
	}

	public void setMinEyesDistance(int minEyesDistance) {
		this.minEyesDistance = minEyesDistance;
	}

	public int getMaxEyesDistance() {
		return maxEyesDistance;
	}

	public void setMaxEyesDistance(int maxEyesDistance) {
		this.maxEyesDistance = maxEyesDistance;
	}

	public int getMaxNumFaces() {
		return maxNumFaces;
	}

	public void setMaxNumFaces(int maxNumFaces) {
		this.maxNumFaces = maxNumFaces;
	}

	public float getMinFaceQualityScore() {
		return minFaceQualityScore;
	}

	public void setMinFaceQualityScore(float minFaceQualityScore) {
		this.minFaceQualityScore = minFaceQualityScore;
	}

}